<!--
 * @Descripttion: 
 * @version: 
 * @Author: by
 * @Date: 2021-05-24 15:14:42
 * @LastEditors: tc
 * @LastEditTime: 2021-12-03 14:49:39
-->
<template>
    <router-view ></router-view>
</template>

<script>
import store from '@/store'
export default {
    mounted () {
        this.resize();
        window.onresize = () => {
            this.resize();
        }
    },
    methods: {
      resize () {
        if (window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight) {
          var windowHeight =  window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
          store.commit('getWindowHeight', windowHeight);
        }
        if (window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth) {
          var windowWidth =  window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
          store.commit('getWindowWidth', windowWidth);
        }
      }
    }
};
</script>

<style>
@import "./assets/css/main.css";
@import "./assets/css/common.css";
@import "./assets/font/font.css";
</style>
